﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Globalization;
using System.Threading;

namespace SimpleWCF
{
    public class SimpleDateService : IServiceDateService
    {
        public string GetDateOfWeekInBulgarian(DateTime datetime)
        {
            CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = new CultureInfo("bg-BG");
            string dayOfweek = DateTime.Now.ToString("dddd");

            return dayOfweek;
        }
    }
}
